#include"vector.h"


void vector_test1()
{
	mName::vector<int> p1;
	p1.push_back(1);
	p1.push_back(2);
	p1.push_back(3);
	p1.push_back(4);
	p1.push_back(5);
	p1.push_back(6);
	p1.push_back(7);
	p1.push_back(8);


	for (auto v : p1)
	{
		cout << v << " ";
	}
	cout << endl;

	mName::vector<int>::iterator pos = p1.begin() + 2;
	p1.insert(pos, 100);

	for (auto v : p1)
	{
		cout << v << " ";
	}
	cout << endl;
}

void vector_test2()
{
	mName::vector<int> p1;
	p1.push_back(1);
	p1.push_back(1);
	p1.push_back(1);
	p1.push_back(1);

	p1.print();
}

int main()
{
	vector_test1();
	return 0;
}